<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
   Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
   Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="JDK Mission Control Communications" />
<meta name="abstract" content="The HotSpot JVM uses Java Management Extensions (JMX) technology over a Remote Method Invocation (RMI) connector to enable monitoring and management features. This is also known as JMX over RMI, or simply JMXRMI. To configure the connection, the following system properties must set when starting the JVM:" />
<meta name="description" content="The HotSpot JVM uses Java Management Extensions (JMX) technology over a Remote Method Invocation (RMI) connector to enable monitoring and management features. This is also known as JMX over RMI, or simply JMXRMI. To configure the connection, the following system properties must set when starting the JVM:" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="GUID-97B37847-8E31-43F2-AA78-E5EBD28EC99A" />
<meta name="DC.Language" content="en-US" />

<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>JDK Mission Control Communications</title>

<meta name="doctitle" content="JDK Mission Control Communications&#xA;" />
<meta name="robots" content="noarchive" />
<link rel="copyright" href="http://oss.oracle.com/licenses/upl" title="Copyright" type="text/html" />

<link rel="contents" href="toc.htm" title="Contents" type="text/html" />
<link rel="prev" href="GUID-4D1A3616-1FB9-4478-8AB7-1941F3EDF87B.htm" title="Previous" type="text/html" />
<link rel="next" href="GUID-2E1242E0-8437-467B-9AEC-36AE680733F7.htm" title="Next" type="text/html" />
</head>
<body>
<div class="zz-skip-header"><a href="#BEGIN">Go to primary content</a></div>
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
<col width="86%" /><col width="*" /><tr valign="bottom">
<td></td>


<td align="center">
<a href="GUID-4D1A3616-1FB9-4478-8AB7-1941F3EDF87B.htm">
<img src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br />
<span class="icon">Previous</span>
</a>
</td>
<td align="center">
<a href="GUID-2E1242E0-8437-467B-9AEC-36AE680733F7.htm">
<img src="./dcommon/gifs/rightnav.gif" alt="Next" /><br />
<span class="icon">Next</span>
</a>
</td>
<td> </td>


</tr>
</table><div class="ind"><a id="GUID-97B37847-8E31-43F2-AA78-E5EBD28EC99A" name="GUID-97B37847-8E31-43F2-AA78-E5EBD28EC99A"></a><!-- End Header -->
<h1 id="JMCOH-GUID-97B37847-8E31-43F2-AA78-E5EBD28EC99A" class="sect1">JDK Mission Control Communications</h1>
<div><p>The HotSpot JVM uses Java Management Extensions (JMX) technology over a Remote Method Invocation (RMI) connector to enable monitoring and management features. This is also known as JMX over RMI, or simply JMXRMI. To configure the connection, the following system properties must set when starting the JVM:</p>
<div class="section"><p class="subhead1">-Dcom.sun.management.jmxremote</p><p>This option toggles the use of JMXRMI. It is enabled by default, so you do not need to set it to use the monitoring features of the JVM. To disable JMXRMI for the JVM, specify&#160;<code>-Dcom.sun.management.jmxremote=false</code>.</p>
</div>
<!-- class="section" -->
<div class="section"><p class="subhead1">-Dcom.sun.management.jmxremote.authenticate</p><p>This options toggles the use of password authentication for a JMXRMI connection. It is enabled by default. To disable password authentication for a JVM, specify&#160;<code>-Dcom.sun.management.jmxremote.authenticate=false</code></p>
<div class="infoboxnote" id="GUID-97B37847-8E31-43F2-AA78-E5EBD28EC99A__GUID-B1DF742A-F33B-48F9-85BE-01BAB4BFA5C9"><p class="notep1">Note:</p>Disabling authentication is not secure. Any remote user who knows (or guesses) the JMX port number and host name will be able to monitor and control your Java application and VM. While it may be acceptable for development, it is not recommended for production systems.</div>
</div>
<!-- class="section" -->
<div class="section"><p class="subhead1">-Dcom.sun.management.jmxremote.port</p><p>This option sets the port number for the JMXRMI connection. You must set an unused port number to enable monitoring and management of the JVM.</p>
</div>
<!-- class="section" -->
<div class="section" id="GUID-97B37847-8E31-43F2-AA78-E5EBD28EC99A__DCOM.SUN.MANAGEMENT.JMXREMOTE.SSL-4DE53AD1"><p class="subhead1">-Dcom.sun.management.jmxremote.ssl</p><p>This option toggles the use of Secure Sockets Layer (SSL) authentication. It is enabed by default. To disable SSL authentication for a JVM, specify <code>&#8212;Dcom.sun.management.jmxremote.ssl=false</code>.</p>
<ul style="list-style-type: disc;"><li><p><code>-Dcom.sun.management.jmxremote.port</code></p>
</li>
<li><p><code>-Dcom.sun.management.jmxremote.authenticate</code></p>
</li>
<li><p><code>-Dcom.sun.management.jmxremote.ssl</code></p>
</li>
</ul>
<p>For more information about these flags, see <a href="olink:JSMGM-GUID-805517EC-2D33-4D61-81D8-4D0FA770D1B8" target="_blank">Monitoring and Management Using JMX Technology</a>.&#160;</p>
</div>
<!-- class="section" -->
<div class="example" id="GUID-97B37847-8E31-43F2-AA78-E5EBD28EC99A__GUID-0571AD03-CA31-4B96-8F7C-21F6710B88AE"><p class="titleinexample">Example 4-1 Starting a JVM With JMXRMI Enabled and No Authentication Required</p><p>The following example demonstrates how to start a Java application (named <code>MyApp</code>) with JMXRMI enabled on port 7091 and no authentication required.</p>
<pre class="oac_no_warn" dir="ltr">java -Dcom.sun.management.jmxremote.port=7091
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false MyApp</pre>
</div>
<!-- class="example" -->
</div>
</div><!-- class="ind" --><!-- Start Footer -->
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
<col width="86%" /><col width="*" /><tr valign="bottom">
<td><a href="http://oss.oracle.com/licenses/upl"><br />
<span class="copyrightlogo">Copyright&#160;&#169;&#160;2018, Oracle&#160;and/or&#160;its&#160;affiliates.&#160;All&#160;rights&#160;reserved.</span></a></td>


<td align="center">
<a href="GUID-4D1A3616-1FB9-4478-8AB7-1941F3EDF87B.htm">
<img src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br />
<span class="icon">Previous</span>
</a>
</td>
<td align="center">
<a href="GUID-2E1242E0-8437-467B-9AEC-36AE680733F7.htm">
<img src="./dcommon/gifs/rightnav.gif" alt="Next" /><br />
<span class="icon">Next</span>
</a>
</td>
<td> </td>


</tr>
</table>

<!-- class="footer" -->
</body>
</html>